package com.qingke.qixi.pojo;

import java.util.List;

public class User {
    private Integer id;

    private String username;

    private String name;

    private Integer age;

    private Integer height;

    private Integer weight;
    
    private String gender;

    private String phone;
    
    private String password;
    
    private List<Education> educations;

    private List<Interest> interests;
    
    public List<Interest> getInterests() {
		return interests;
	}

	public void setInterests(List<Interest> interests) {
		this.interests = interests;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

    
    
    public List<Education> getEducations() {
		return educations;
	}

	public void setEducations(List<Education> educations) {
		this.educations = educations;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

	@Override
	public String toString() {
		return "用户信息:  姓名:" + name + ", 年龄:" + age + ", 身高:" + height + ", 体重:" + weight + ", 性别:"
				+ gender + ", 手机:" + phone + ", " + educations + " " + "兴趣爱好:" + (interests.size()==0?"无":interests);
	}
    
    
}